#!/usr/bin/env bash

west build \
 --pristine \
 --build-dir=build \
 --board nrf52840dongle \
 -- \
 -DPM_STATIC_YML_FILE=pm_nrf52840dongle_nrf52840_ota.yml \
 -D"mcuboot_CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n" \
 -D"CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n" \
 -D"mcuboot_CONFIG_USB_DEVICE_STACK=n" \
 -D"mcuboot_CONFIG_MCUBOOT_SERIAL=n" \
 -D"mcuboot_CONFIG_DISABLE_FLASH_PATCH=y"
#  -D"mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE=\"/foo/bar/key.pem\"" \
#  -D"CONFIG_MCUBOOT_IMAGE_VERSION=\"1.2.3\"
